package com.tangsm.spring.boot.swagger3.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * 学生信息
 * @author tangsm
 * @date 2021-07-23
 */
@ApiModel("学生信息")
public class Student implements Serializable {
    /**
     * 学号（hidden=true：参数隐藏）
     */
    @ApiModelProperty(value = "学号", hidden = true)
    private String sno;

    /**
     * 学生姓名（required=true：参数必输）
     */
    @ApiModelProperty(value = "学生姓名", required = true)
    private String sname;

    /**
     * 学生性别[M:男, F:女]
     */
    @ApiModelProperty(value = "学生性别[M:男, F:女]", required = true, allowableValues = "M,F")
    private String ssex;

    public String getSno() {
        return sno;
    }

    public void setSno(String sno) {
        this.sno = sno;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getSsex() {
        return ssex;
    }

    public void setSsex(String ssex) {
        this.ssex = ssex;
    }

    @Override
    public String toString() {
        return "Student{" +
                "sno='" + sno + '\'' +
                ", sname='" + sname + '\'' +
                ", ssex='" + ssex + '\'' +
                '}';
    }
}
